using System;
using digit.Core;
using System.Data;

namespace SMS.MediaManager
{
	public class PictureInfo
	{
		#region CONSTRUCTORS
		public PictureInfo()
		{
		
			this.m_pictureID = Util.NULL_LONG;
			this.m_pictureName = Util.NULL_STRING;
			this.m_categoryID = Util.NULL_INT;
			this.m_imgLength = Util.NULL_INT;
			this.m_pictureURL = null;
			this.m_pictureData = Util.NULL_STRING;
			this.m_location = Util.NULL_STRING;
			this.m_sMSCount = Util.NULL_LONG;
			this.m_createdBy = Util.NULL_STRING;
			this.m_createdDate = Util.NULL_DATETIME;
			this.m_status = Util.NULL_BYTE;
		}
		public PictureInfo( long pictureID,  string pictureName,  int categoryID,  int imgLength,  byte[] pictureURL,  string pictureData,  string location,  long sMSCount,  string createdBy,  DateTime createdDate,  byte status)
		{
		
			this.m_pictureID = pictureID;
			this.m_pictureName = pictureName;
			this.m_categoryID = categoryID;
			this.m_imgLength = imgLength;
			this.m_pictureURL = pictureURL;
			this.m_pictureData = pictureData;
			this.m_location = location;
			this.m_sMSCount = sMSCount;
			this.m_createdBy = createdBy;
			this.m_createdDate = createdDate;
			this.m_status = status;
		}
		public PictureInfo( DataRow dRow)
		{
		
			this.m_pictureID = (long) Util.ReplaceDBNullTo(dRow["pictureID"], Util.NULL_LONG);
			this.m_pictureName = Util.ReplaceDBNullTo(dRow["pictureName"], Util.NULL_STRING).ToString();
			this.m_categoryID = (int) Util.ReplaceDBNullTo(dRow["categoryID"], Util.NULL_INT);
			this.m_imgLength = (int) Util.ReplaceDBNullTo(dRow["imgLength"], Util.NULL_INT);
			this.m_pictureURL = (byte[]) Util.ReplaceDBNullTo(dRow["pictureURL"], null);
			this.m_pictureData = Util.ReplaceDBNullTo(dRow["pictureData"], Util.NULL_STRING).ToString();
			this.m_location = Util.ReplaceDBNullTo(dRow["location"], Util.NULL_STRING).ToString();
			this.m_sMSCount = (long) Util.ReplaceDBNullTo(dRow["sMSCount"], Util.NULL_LONG);
			this.m_createdBy = Util.ReplaceDBNullTo(dRow["createdBy"], Util.NULL_STRING).ToString();
			this.m_createdDate = (DateTime) Util.ReplaceDBNullTo(dRow["createdDate"], Util.NULL_DATETIME);
			this.m_status = (byte) Util.ReplaceDBNullTo(dRow["status"], Util.NULL_BYTE);
		}
		#endregion
		
		#region ATTRIBUTES
		private long m_pictureID;
		private string m_pictureName;
		private int m_categoryID;
		private int m_imgLength;
		private byte[] m_pictureURL;
		private string m_pictureData;
		private string m_location;
		private long m_sMSCount;
		private string m_createdBy;
		private DateTime m_createdDate;
		private byte m_status;
		#endregion
		
		#region PROPERTIES
		public long PictureID
		{
			get
			{
				return this.m_pictureID;
			}
			set
			{
				this.m_pictureID = value;
			}
		}
		
		public string PictureName
		{
			get
			{
				return this.m_pictureName;
			}
			set
			{
				this.m_pictureName = value;
			}
		}
		
		public int CategoryID
		{
			get
			{
				return this.m_categoryID;
			}
			set
			{
				this.m_categoryID = value;
			}
		}
		
		public int ImgLength
		{
			get
			{
				return this.m_imgLength;
			}
			set
			{
				this.m_imgLength = value;
			}
		}
		
		public byte[] PictureURL
		{
			get
			{
				return this.m_pictureURL;
			}
			set
			{
				this.m_pictureURL = value;
			}
		}
		
		public string PictureData
		{
			get
			{
				return this.m_pictureData;
			}
			set
			{
				this.m_pictureData = value;
			}
		}
		
		public string Location
		{
			get
			{
				return this.m_location;
			}
			set
			{
				this.m_location = value;
			}
		}
		
		public long SMSCount
		{
			get
			{
				return this.m_sMSCount;
			}
			set
			{
				this.m_sMSCount = value;
			}
		}
		
		public string CreatedBy
		{
			get
			{
				return this.m_createdBy;
			}
			set
			{
				this.m_createdBy = value;
			}
		}
		
		public DateTime CreatedDate
		{
			get
			{
				return this.m_createdDate;
			}
			set
			{
				this.m_createdDate = value;
			}
		}
		
		public byte Status
		{
			get
			{
				return this.m_status;
			}
			set
			{
				this.m_status = value;
			}
		}
		
		#endregion
		
	}
}